import Home from "../views/Home"
import {lazy} from "react"
const routes=[{
    path:'/home',
    component:Home,
    text:'首页'
},
{
    path:'/class',
    component :lazy(()=>import('../views/Class')),
    text:"分类"
},
{
    path:'/jingxi',
    component :lazy(()=>import('../views/Jingxi')),
    text:"惊喜"
},
{
    path:'/shopCar',
    component :lazy(()=>import('../views/ShopCar')),
    text:"购物车"
},
{
    path:'/my',
    component :lazy(()=>import('../views/My')),
    text:"我的"
},
]
export default routes